package com.boboPlanet.user.single;

import com.boboPlanet.comm.constance.BaseDictConfigEnum;
import com.boboPlanet.comm.context.BusinessStartTimeContext;
import com.boboPlanet.comm.context.LoginUserContext;
import com.boboPlanet.comm.utils.AutoGenerateIds;
import com.boboPlanet.user.entity.dto.SocketMsgDTO;
import com.boboPlanet.user.entity.dto.SysLogDTO;
import com.boboPlanet.user.entity.po.SysMsgPO;

/**
 * @Description: TODO 单例工厂 -待定
 * @Author: mis_wu
 * @Date: 2023/3/8
 **/
public class SingleFactory {

    public static SysLogDTO getLogDto(String content){
        SysLogDTO dto = new SysLogDTO();
        dto.setLogUser(LoginUserContext.getLoginUserInfoPO().getUserName());
        dto.setLogContent(content);
        dto.setLogTime(BusinessStartTimeContext.getTime());
        dto.setLogSys(BaseDictConfigEnum.bobo_planet.name());

        return dto;
    }

}
